package com.zzh.lib.plugin.exception;
/**
 *
 * @Date: 2021/5/27 09:25
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description: PluginNeedRestartException.java
 */
public class PluginNeedRestartException extends Exception {

    private String packageName;

    public PluginNeedRestartException(String packageName) {
        super("You need to restart the app before reinstall/reload the plugin: " + packageName);
        this.packageName = packageName;
    }

    public PluginNeedRestartException(String packageName, Throwable cause) {
        super("You need to restart the app before reinstall/reload the plugin: " + packageName, cause);
        this.packageName = packageName;
    }

    public String getPackageName() {
        return packageName;
    }
}
